From 61f0556cf7d31bae15d2c29b32e408f51321a023 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 13 Jan 2014 23:31:05 -0500 Subject: [PATCH] Add some treeview a11y tests --- testsuite/a11y/Makefile.am | 1 + testsuite/a11y/tree.txt | 354 +++++++++++++++++++++++++++++++++++++ testsuite/a11y/tree.ui | 48 +++++ 3 files changed, 403 insertions(+) create mode 100644 testsuite/a11y/tree.txt create mode 100644 testsuite/a11y/tree.ui diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am index 1223cdd70d..91abf7620f 100644 --- a/testsuite/a11y/Makefile.am +++ b/testsuite/a11y/Makefile.am @@ -78,6 +78,7 @@ testdata = \ listbox.ui listbox.txt \ stack.ui stack.txt \ headerbar.ui headerbar.txt \ + tree.ui tree.txt \ $(NULL) test_in_files = \ diff --git a/testsuite/a11y/tree.txt b/testsuite/a11y/tree.txt new file mode 100644 index 0000000000..4aa6713615 --- /dev/null +++ b/testsuite/a11y/tree.txt @@ -0,0 +1,354 @@ +window1 + "window" + index: 0 + state: enabled resizable sensitive showing visible + toolkit: gtk + + layer: window + alpha: 1 + tv + "table" + parent: window1 + index: 0 + state: enabled focusable sensitive showing visible manages-descendants + toolkit: gtk + + layer: widget + alpha: 1 + + selected children: tv + + rows: 3 + columns: 1 + selected rows: 0 + column 0 description: Test + column 0 header: unnamed-GtkButtonAccessible-0 + table indexes: + ??tv + ??tv + ??tv + unnamed-GtkButtonAccessible-0 + "table column header" + parent: tv + index: 0 + name: Test + state: enabled sensitive showing visible + toolkit: gtk + + layer: widget + alpha: 1 + + image size: -1 x -1 + image description: (null) + + action 0 name: click + action 0 description: Clicks the button + tv + "table cell" + parent: tv + index: 1 + state: enabled focusable selectable selected sensitive showing transient visible + + layer: widget + alpha: 1 + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 0 + name: One + state: enabled focusable selectable selected sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: One + character count: 3 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 1 + name: 234 + state: enabled focusable selectable selected sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: 234 + character count: 3 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 2 + state: enabled focusable selectable sensitive showing transient visible + + layer: widget + alpha: 1 + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 0 + name: Two + state: enabled focusable selectable sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: Two + character count: 3 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 1 + name: 567 + state: enabled focusable selectable sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: 567 + character count: 3 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 3 + state: enabled focusable selectable sensitive showing transient visible + + layer: widget + alpha: 1 + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 0 + name: 40.000 + state: enabled focusable selectable sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: 40.000 + character count: 6 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell + tv + "table cell" + parent: tv + index: 1 + name: 999999 + state: enabled focusable selectable sensitive showing single-line transient visible + + layer: widget + alpha: 1 + + text: 999999 + character count: 6 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: expand or contract + action 0 description: Expands or contracts the row in the tree view containing this cell + action 1 name: edit + action 1 description: Creates a widget in which the contents of the cell can be edited + action 2 name: activate + action 2 description: Activates the cell diff --git a/testsuite/a11y/tree.ui b/testsuite/a11y/tree.ui new file mode 100644 index 0000000000..331e5fba7c --- /dev/null +++ b/testsuite/a11y/tree.ui @@ -0,0 +1,48 @@ + + + + + + + + + + One234 + Two567 + 40.000999999 + + + + False + popup + + + True + True + store + + + Test + True + + + True + + + 0 + + + + + True + + + 1 + + + + + + + + -- 2.30.2